package edu.nuc.ahm.juc.forkjoin;

public class Test {
    public static void main(String[] args) {
        test1();
    }
    // 普通程序员
    public static void test1(){
        Long sum =0L;
        long start = System.currentTimeMillis();

        for (Long i = 1L;i <=10_0000_0000; i++) {
            sum+=i;
        }
        long end = System.currentTimeMillis();
        System.out.println("sum="+sum+"时间："+(end-start));
    }
    public static void test2(){
        long start = System.currentTimeMillis();
        long end = System.currentTimeMillis();
        System.out.println("sum="+"时间："+(end-start));
    }
    public static void test3(){
        long start = System.currentTimeMillis();
        long end = System.currentTimeMillis();
        System.out.println("sum="+"时间："+(end-start));
    }

}
